package Ioperate;

import book.Book;
import book.BookList;

import java.util.Scanner;

/**
 * @Author liangzai
 * @Description:
 */
public class ShowBook implements Ioperate{
    public void work(BookList bookList){
        Scanner scanner = new Scanner(System.in);
        int count = bookList.getSize();

        for (int i = 0; i < count; i++) {
            Book book = bookList.getBooks(i);
            System.out.println(book);
        }

        System.out.println();
    }
}
